package com.zb.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 工单设置表
 * </p>
 *
 * @author WEN
 * @since 2023-09-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="ZjWorkSet对象", description="工单设置表")
public class ZjWorkSet implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "商家ID")
    private Long id;

    @ApiModelProperty(value = "是否允许查询全部工单：0-否，1-是")
    @TableField("is_select_all_order")
    private Boolean selectAllOrder;

    @ApiModelProperty(value = "是否启用重复报单：0-否，1-是")
    @TableField("is_enable_repeat_order")
    private Boolean enableRepeatOrder;

    @ApiModelProperty(value = "移动端重复报单：0-否，1-是")
    @TableField("is_repeat_by_mobile")
    private Boolean repeatByMobile;

    @ApiModelProperty(value = "客服端重复报单：0-否，1-是")
    @TableField("is_repeat_by_service")
    private Boolean repeatByService;

    @ApiModelProperty(value = "是否启用重复报单提示：0-否，1-是")
    @TableField("is_enable_repeat_order_tip")
    private Boolean enableRepeatOrderTip;

    @ApiModelProperty(value = "移动端重复报单提示：0-否，1-是")
    @TableField("is_repeat_by_mobile_tip")
    private Boolean repeatByMobileTip;

    @ApiModelProperty(value = "客服端重复报单提示：0-否，1-是")
    @TableField("is_repeat_by_service_tip")
    private Boolean repeatByServiceTip;

    @ApiModelProperty(value = "是否启用产品名称：0-否，1-是")
    @TableField("is_enable_pro_name")
    private Boolean enableProName;

    @ApiModelProperty(value = "是否启用产品型号：0-否，1-是")
    @TableField("is_enable_pro_model")
    private Boolean enableProModel;

    @ApiModelProperty(value = "是否启用产品编码：0-否，1-是")
    @TableField("is_enable_pro_code")
    private Boolean enableProCode;

    @ApiModelProperty(value = "是否启用用户账号：0-否，1-是")
    @TableField("is_enable_user_account")
    private Boolean enableUserAccount;

    @ApiModelProperty(value = "是否启用用户姓名：0-否，1-是")
    @TableField("is_enable_user_name")
    private Boolean enableUserName;

    @ApiModelProperty(value = "是否启用用户手机号：0-否，1-是")
    @TableField("is_enable_user_phone")
    private Boolean enableUserPhone;

    @ApiModelProperty(value = "是否启用用户地址：0-否，1-是")
    @TableField("is_enable_user_address")
    private Boolean enableUserAddress;

    @ApiModelProperty(value = "是否完工修改，即工单申请结单时，还可以修改，结单后不可以：0-否，1-是")
    @TableField("is_finish_update")
    private Boolean finishUpdate;

    @ApiModelProperty(value = "是否开启移动端维修师傅修改权限，即申请结单时，还可以修改，结单后不可修改，与finishUpdate结合使用，当finishUpdate为true时才生效")
    @TableField("is_open_repair_auth")
    private Boolean openRepairAuth;

    @ApiModelProperty(value = "报单是否携带登记信息：0-否，1-是")
    @TableField("is_carry_regist_info")
    private Boolean carryRegistInfo;

    @ApiModelProperty(value = "是否显示关联备件：0-否，1-是")
    @TableField("is_show_relation_spare")
    private Boolean showRelationSpare;

    @ApiModelProperty(value = "网点未接单自动退回时间（小时）")
    private Integer networkReceiveTimeout;

    @ApiModelProperty(value = "网点未派单自动退回时间（小时）")
    private Integer networkDispatchTimeout;

    @ApiModelProperty(value = "工程师未接单自动退回时间（小时）")
    private Integer engineerReceiveTimeout;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtUpdate;


}
